package dto;

import lombok.Data;

/**
 * @author lyl
 * description:
 */
@Data
public class UserRoleDto {
    private long urId;
    private UserDto userDto;
    private RoleDto roleDto;
    private long statue;
    public UserRoleDto(long urId, UserDto userDto, RoleDto roleDto, long statue) {
        this.urId = urId;
        this.userDto = userDto;
        this.roleDto = roleDto;
        this.statue = statue;
    }
    public UserRoleDto(String username, long age, String roleName) {
        UserDto userDto = new UserDto();
        userDto.setUsername(username);
        userDto.setAge(age);
        this.userDto = userDto;
        this.roleDto = new RoleDto(roleName);
    }
}
